{extend name='common@layout/seller' /} {block name="left"}{include
file='store/left'}{/block} {block name="breadcrumb"}
<div class="ncsc-path">
	<i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>店铺<i
		class="icon-angle-right"></i>品牌申请
</div>
{/block} {block name='content'}
<div class="tabmenu">
	<ul class="tab pngFix">
		<li class="active"><a href="{:url('/seller/store/brand')}">品牌申请</a></li>
	</ul>
	<a href="javascript:void(0)" class="ncsc-btn ncsc-btn-green"
		nc_type="dialog" dialog_title="品牌申请" dialog_id="my_goods_brand_apply"
		dialog_width="480" uri="/index.php?s=seller/store/brand_add">品牌申请</a>
</div>

<table class="search-form">
	<form method="get">
		<input type="hidden" name="act" value="store_brand"> <input
			type="hidden" name="op" value="brand_list">
		<tr>
			<td>&nbsp;</td>
			<th>品牌名称</th>
			<td class="w160"><input type="text" class="text"
				name="name" value="{$Request.param.name}" /></td>
			<td class="w70 tc"><label class="submit-border"><input
					type="submit" class="submit" value="搜索" /></label></td>
		</tr>
	</form>
</table>
<table class="ncsc-default-table">
	<thead>
		<tr>
			<th class="w150">品牌图标</th>
			<th>品牌名称</th>
			<th>所属类别</th>
			<th>状态</th>
			<th class="w100">操作</th>
		</tr>
	</thead>
	<tbody>
		{if(!empty($brand_list))}
		{volist name="brand_list" id="val"}
		<tr class="bd-line">
			<td><img alt="{$val.name}"
				src="{:img_url($val.pic,60)}"
				onload="javascript:DrawImage(this,88,44);" /></td>
			<td>
				{$val.name}
			</td>
			<td>
				{$val.class_name}
			</td>
			<td>
				{$brand_state[$val.apply]|default="审核中"}
			</td>
			<td class="nscs-table-handle">
			{if($val.apply == 0)}
			<span><a
					href="javascript:void(0)" class="btn-blue" nc_type="dialog"
					dialog_title="编辑品牌"
					dialog_id="my_goods_brand_edit" dialog_width="480"
					uri="/index.php?s=seller/store/brand_edit&id={$val.id}"><i
						class="icon-edit"></i>
					<p>
							编辑
						</p></a></span> <span><a href="javascript:void(0)" class="btn-red"
					onclick="ajax_get_confirm('确认删除吗', '/index.php?s=seller/store/brand_del&id={$val.id}');"><i
						class="icon-trash"></i>
					<p>
							删除
						</p></a></span>
			{/if}
			</td>
		</tr>
		{/volist}
		{else /}
		<tr>
			<td colspan="20" class="norecord"><div class="warning-option">
					<i class="icon-warning-sign"></i><span>
						没有符合的结果
					</span>
				</div></td>
		</tr>
		{/if}
	</tbody>
	<tfoot>
	</tfoot>
</table>
{/block}
